Skip to content

Conversation

@tomahock
Copy link
Member

No description provided.

Comment on lines +40 to +55
'redis_high' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'high',
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
],
'redis_low' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'low',
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although we're defining these new connections, no job is using them. The jobs have different queues associated, but since we're not declaring different connections, they're all being sent to the default connection (redis).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed it, but the queue name is not the connection name, which was what we are defining here. We can have one connection that handles multiple queues. So, to put it simply: we should keep one Redis connection.

|
*/

'default' => env('QUEUE_CONNECTION', 'sync'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the default set as sync because of the scheduled jobs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's the default, didn't change it. Should it be redis_low or redis_high?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just redis.

@josepostiga josepostiga linked an issue Oct 9, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create priority queues

3 participants